<html>

<head>
	<p> 'Delicious!' </p>
	
	
</head>

<body>
	<!-- <script LANGUAGE="javascript">
		function validate(form){
			document.alert("Validating!");
			if (form.user < 6)
				document.alert("User must be at least 6 characters long");
			else if (form.pass < 8 or form.pass2 < 8)
				document.alert("Password must be at least 8 characters long");
			else if (form.pass != form.pass2)
				document.alert("Passwords don't match");
			else {
				var emailPattern =/.*@{1}.*\.{1}.*/i;
				var match = emailPattern.test(form.email);
				if (!match) 
					document.alert("Malformed email");
				else 
					document.testform.submit();
			}
			return false;
	}
	</script> -->

	<form name="login" method="post" action="api/login/login.php">
		User: <input type="text" name="user"> <br>
		Pass: <input type="password" name="pass"> <br>
			  <input type="submit" value="Login">
	</form>
	
	<br>
	<form name="register" method="post" action="api/login/register.php">
		Username: <input type="text" name="user"> <br>
		Password: <input type="password" name="pass"> <br>
		Password (confirm): <input type="password" name="pass2"> <br>
		Email: <input type="text" name="email"> <br>
		Birth (dd/mm/yyyy): <input type="text" name="birth"> <br>
		<!-- <input type="button" value="Register" onClick="validate(this.form)"> <br> -->
		<input type="Submit" value="Register"> <br>
	</form>
</body>

</html>